﻿using System;
using System.Collections.Generic;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class EarlyWarning_showCompany : BasePage
{
    public EarlyWarning_showCompany()
    { }

    string _CompanyId = string.Empty;
    protected void Page_Load(object sender, EventArgs e)
    {
        _CompanyId = HZ.Fun.CheckString(Request.QueryString["CompanyID"]);
        if (!this.IsPostBack)
        {
            DataBind();
        }
    }

    private void DataBind()
    {
        int t = 0;
        HZ.Supervise.IBLL.IBLL_PreWarning pre = HZ.Supervise.BLLFactory.IBLL_PreWarning();
        System.Data.DataTable dt = pre.GetCompanyName(_CompanyId, AspNetPager1.CurrentPageIndex, AspNetPager1.PageSize, out t);
        AspNetPager1.RecordCount = t;
        this.gridInfo.DataSource = dt;
        this.gridInfo.DataBind();
    }
    protected void AspNetPager1_PageChanged(object sender, EventArgs e)
    {
        DataBind();
    }
}
